{% autoescape off %}

	<h1>Document</h1>
	{% for page in pages %}
		
		{% for text_block in page.text_blocks %}
			{{ text_block.as_html }}
		{% endfor %}
		
		<hr />
		
	{% endfor%}

{% endautoescape %}